from gi.repository import Unity, Gio, GObject, Dbusmenu

if __name__ == "__main__":
    launcher = Unity.LauncherEntry.get_for_desktop_id ('Eclipse.desktop')
    launcher.set_property('urgent', 1)
    launcher.set_property('count-visible', True)
    print launcher.get_property('urgent')
    GObject.MainLoop().run()